package com.ruixi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author lrzg
 * @date 2021-10-08 16:56
 * @Description TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
// MyBatisPlus 表映射注解
@TableName(value = "user")
public class User {
    //    MyBatisPlus主键策略注解
    @TableId(type= IdType.AUTO)
    private Long id;
    private String username;
    private Date birthday;
    private String sex;
    private String address;

}
